package com.acwer.domain.sys;

import com.acwer.framework.data.ColumnExplain;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

@Data
@EqualsAndHashCode(callSuper=false)
@Accessors(chain=true)
@TableName(value = "sys_menu_v2")//指定表名
public class SysMenu {

	@ColumnExplain(value="主键",isEdit=false)
	@TableId(value="id",type=IdType.UUID)
	private String id;
	
	@ColumnExplain(value="路径",required=true)
	private String path;
	@ColumnExplain(value="默认跳转")
	private String redirect;
	@ColumnExplain(value="菜单名称",required=true)
	private String title;
	@ColumnExplain(value="图标")
	private String icon;
	
	@ColumnExplain(value="是否隐藏（子页面使用）")
	private Boolean hidden;
	
	@ColumnExplain(value="上级菜单",isEdit=false)
	private String pid;
	
	@ColumnExplain(value="组件",isEdit=true)
	private String component;
	
	@ColumnExplain(value="按钮配置")
	private String btns;
	
	@ColumnExplain(value="按钮配置",isEdit=false)
	@TableField(exist = false)
	private String perbtns;
	
	@ColumnExplain(value="角色",isEdit=false)
	@TableField(exist = false)
	private String roleid;
}
